<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $HomeIndex=M("cate");
        $res=$HomeIndex->select();
        //dump($res);
        $this->assign( "food", $res );
        $this->display();
    }


} 